<template>
    <el-form-item :label="label" prop="fieldName">
        <el-input v-model.number="emissionData" :placeholder="placeholder" clearable></el-input>
    </el-form-item>
  </template>
  
  <script>
  import { ElFormItem, ElInput } from 'element-ui';
  
  export default {
    components: {
      ElFormItem,
      ElInput,
    },
    props: {
      label: { type: String, required: true },
      fieldName: { type: String, required: true },
      placeholder: { type: String, required: true },
      value: { type: Number, default: null },
    },
    computed: {
      emissionData: {
        get() {
          return this.value;
        },
        set(value) {
          this.$emit('input', value);
        },
      },
    },
  };
  </script>